broadway: Fix indentation
authorAlexander Larsson <alexl@redhat.com>
Mon, 1 Oct 2012 09:50:54 +0000 (11:50 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 1 Oct 2012 12:58:56 +0000 (14:58 +0200)
gdk/broadway/broadway.js

index a5e30c1bfddd96c4b3198ade87181897dcdff0df..bd519d0775797eeb5eb22552c07a57f0b781b6c6 100644 (file)
@@ -2788,30 +2788,30 @@ function connect()
        ws = newWS (loc);
     }
 
-       ws.onopen = function() {
-           inputSocket = ws;
-           var w, h;
-           if (useToplevelWindows) {
-               w = window.screen.width;
-               h = window.screen.height;
-           } else {
+    ws.onopen = function() {
+       inputSocket = ws;
+       var w, h;
+       if (useToplevelWindows) {
+           w = window.screen.width;
+           h = window.screen.height;
+       } else {
+           w = window.innerWidth;
+           h = window.innerHeight;
+           window.onresize = function(ev) {
+               var w, h;
                w = window.innerWidth;
                h = window.innerHeight;
-               window.onresize = function(ev) {
-                   var w, h;
-                   w = window.innerWidth;
-                   h = window.innerHeight;
-                   sendInput ("d", [w, h]);
-               };
-           }
-           sendInput ("d", [w, h]);
-       };
-       ws.onclose = function() {
-           inputSocket = null;
-       };
-       ws.onmessage = function(event) {
-           handleMessage(event.data);
-       };
+               sendInput ("d", [w, h]);
+           };
+       }
+       sendInput ("d", [w, h]);
+    };
+    ws.onclose = function() {
+       inputSocket = null;
+    };
+    ws.onmessage = function(event) {
+       handleMessage(event.data);
+    };
 
     setupDocument(document);
     window.onunload = function (ev) {